<?php include '../include/init.php';
$qrec = mysql_query("SELECT * FROM recette WHERE rec_id = '$id'");
$rec = mysql_fetch_array($qrec);
$get_insidenav = mysql_query("SELECT * FROM category WHERE cat_id < 100");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<? include $_SERVER['DOCUMENT_ROOT'].'/fr/include/meta.php'; ?>
	<meta name="keywords" lang="fr" content="Herbes de chine,recette,recettes,recette traditionelle,recettes traditionelles,<? echo $rec['rec_nom'].",".$rec['rec_nom_cn']; ?>" />
	<meta name="description" content="Herbes de Chine : <? echo $rec['rec_nom']." ".$rec['rec_nom_cn']." : ".$rec['rec_utilisation'] ?>" />
	<title>Herbes de Chine : <? echo $rec['rec_nom']." ".$rec['rec_nom_cn']; ?></title>
	<link href="/fr/css/common.css" rel="stylesheet" type="text/css" />
	<link href="/fr/css/fiche.css" rel="stylesheet" type="text/css" />
	<link href="/fr/css/fiche_recette.css" rel="stylesheet" type="text/css" />
	<script language="javascript" type="text/javascript" src="/fr/js/static.js"></script>
</head>
<body>
	<? include '../include/header.php'; ?>
	<div id="tools">
		<table>
			<tr>
				<td id="chemin"><a href="/fr/index.php">Accueil</a> > <a href="/fr/recettes/">Recettes traditionelles</a> > <? echo $rec['rec_nom'] ?></td>
			</tr>
		</table>
	</div>
    <table id="body" class="widescreen">
		<tr class="top"><td colspan="2"></td></tr>
	    <tr class="middle"><td>
			<table>
				<tr>
					<? include '../include/insidenav.php'; ?>
					<td id="idee">
						<h1><? echo $rec['rec_nom'] ?><br /><span class="grey"><? echo $rec['rec_nom_cn'] ?></span></h1>
						<div class="column twotriple">
							<img src="<? echo $rec['rec_photo'] ?>" alt="<? echo $rec['rec_nom']." ".$rec['rec_nom_cn'] ?>" /><br /><br />
							<? include '../include/fiche_recette.php'; ?>
						</div>
						<div class="column triple last">
							<div class="small">
								<strong>Poids</strong>
								<p class="left"><? echo $rec['rec_poids'] ?> g</p>
							</div>
							<div class="small">
								<strong>Prix</strong>
								<p class="left"><? echo $rec['rec_prix'] ?> €</p>
							</div>
							<div>
								<span class="stock">En stock</span>Livraison sous 2 à 4 jours<br /><br />
							</div>
							<a href="/fr/monpanier.php?q=add&amp;p=<? echo $rec['rec_id'] ?>&amp;quan=1"><img src="/img/common/btn/addcart_l.gif" alt="Ajouter au panier" /></a>
						</div>
					</td>
			    </tr>
			</table>
		</td></tr>
		<tr class="bottom"><td colspan="2"></td></tr>
	</table>
	<table id="tool_sep" class="widescreen tool expand">
		<tr class="top"><td colspan="2"></td></tr>
		<tr class="middle"><td>
			<div class="body more">
				<span class="title">Commander les produits séparément</span>
				<div class="container">
					<? 
					$id = $_GET['id'];
					$q1 = mysql_query("SELECT * FROM produit, asso_pro_rec 
						WHERE asso_pro_rec.reca_id = '$id'
						AND produit.pro_id = asso_pro_rec.proa_id
						GROUP BY asso_pro_rec.proa_id");
					$path = "/fr/produits/";
					while ($more = mysql_fetch_array($q1)){ ?>
						<div class='itemproduit'>
							<a href="<? echo $path."article.php?id=".$more['pro_id']; ?>"><img src="<? echo $more['pro_thumb']; ?>" alt="<? echo $more['pro_nom']; ?>" /></a>
							<dl>
								<dt><strong><a href="<? echo $path."article.php?id=".$more['pro_id']; ?>"><? echo $more['pro_nom']; ?></a></strong></dt>
								<dt><? echo $more['pro_nom_cn']; ?></dt>
								<dt class="price"><? echo $more['pro_prix']; ?> €</dt>
								<dt><a href="/fr/monpanier.php?q=add&amp;p=<? echo $more['pro_id'] ?>&amp;quan=1"><img src="/img/common/btn/addcart_grey_s.gif" alt="Ajouter au panier" /></a></dt>
							</dl>
						</div>
					<? } ?>
				</div>
			</div>
		</td></tr>
		<tr class="bottom"><td colspan="2"></td></tr>
	</table>
	<? include '../include/tool_more.php'; ?>
	<? include '../include/tool_cart.php'; ?>
	<? include '../include/footer.php'; ?>
</body>
</html>
